import request from '@/utils/request'

export default {
  getList(args) {
    return request.doGet('/sys/SysOrgan/list', args)
  },

  getTreeList(args) {
    return request.doGet('/sys/SysOrgan/getTreeList', args)
  },

  add(args) {
    return request.doPost('/sys/SysOrgan/add', args)
  },

  edit(args) {
    return request.doPost('/sys/SysOrgan/edit', args)
  },

  getById(args) {
    return request.doGet('/sys/SysOrgan/getById', args)
  },

  deleteById(args) {
    return request.doGet('/sys/SysOrgan/delete', args)
  },

  addContact(args) {
    return request.doPost('/sys/SysOrgan/addContact', args)
  },

  editContact(args) {
    return request.doPost('/sys/SysOrgan/editContact', args)
  },

  deleteContactById(args) {
    return request.doGet('/sys/SysOrgan/deleteContactById', args)
  },

  getContactList(args) {
    return request.doGet('/sys/SysOrgan/getContactList', args)
  },

  getAll(args) {
    return request.doGet('/sys/SysOrgan/getAll', args)
  },

  getVoList(args) {
    return request.doGet('/sys/SysOrgan/getVoList', args)
  },

  getOrganByPid(args) {
    return request.doGet('/sys/SysOrgan/getOrganByPid', args)
  },

  getLeaderOrgan(args) {
    return request.doGet('/sys/SysOrgan/getLeaderOrgan', args)
  },

  getManageUnits(args) {
    return request.doGet('/sys/SysOrgan/getManageUnits', args)
  },

  getOrganName(args) {
    return request.doGet('/sys/SysOrgan/getOrganName', args)
  }

}
